package paleGoldenRod.service;

//import java.util.LinkedList;

import java.util.ArrayList;

import paleGoldenRod.client.GameMarker;
import paleGoldenRod.client.ThinkMapService;

//import com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
//import com.mapitz.gwt.googleMaps.client.GMarker;
/**
 * The Google Maps mashup with thinking games.
 */
public class ThinkMapServiceImpl extends RemoteServiceServlet implements ThinkMapService {
	private static final long serialVersionUID = -190827977040318307L;
	static String data;
	static ArrayList markers = new ArrayList();
	
	public ThinkMapServiceImpl(){
    // TODO: Do something
	}
	public void sendString(String message){
		data = message;
	}
	public String getString(){
		return data;
	}
	
	public void sendMarker(GameMarker gm) {
		//GWT.log("sendMarker", null);
		System.out.println("sendMarker " + gm.game);
		markers.add(gm);
	}
	public ArrayList getMarkers() {
		//System.out.println("getMarkers");
		return markers;
	}
	
	public void sendDouble(Double d) {
		GWT.log("sendDouble d", null);
	}
}